<?php

###########################################################################
#   Copyright (C) 2012 CDNPAL LTD by Christopher Gu                       #
#   resources@cdnpal.com                                                  #
#                                                                         #
#   coded for Php 4.3/5.X and above                                       #
#   and AllowOverride all for .htaccess                                   #
#                                                                         #
#   This program is free software released                                #
#   under the GPL version 2 license:                                      #
#   http://www.gnu.org/licenses/gpl-2.0.htm                               #
#                                                                         #
#   This program is distributed WITHOUT ANY WARRANTY                      #
#   or FITNESS FOR A PARTICULAR PURPOSE.                                  #
#                                                                         #
#   DADF-SDK                                                              #
#                                                                         #
###########################################################################

class PartnerAuthentication
{
	
	public static function is_valid_user_for_partner_id($partner_id, $username, $password) {
		
		/*
		 * Is the username and password valid for the partner_id ??
		 * This function will only be invoked if the settings.ini 
		 * partner.authentication is true
		 */
		
		$using_partner_authentication = Zend_Registry::get('partner.authentication');
		
		if ($using_partner_authentication != true):
			return true;
		endif;
		
		/*
		 * ACL methods go here to validate the partner
		 */
		
		return true;
		
	}
	
}